﻿<UserControl x:Class="Zcu.PanelComposer.Views.ProjectDetailView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:ht="http://helixtoolkit.codeplex.com"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <DockPanel LastChildFill="True">
            <Label x:Name="ProjectName" Content="Title" FontSize="16" DockPanel.Dock="Top" />

            <GroupBox Header="Action" Width="200" DockPanel.Dock="Right">
            <Grid Margin="5 5">
                <Grid.RowDefinitions>
                    <RowDefinition Height="35" />
                    <RowDefinition Height="35" />
                    <RowDefinition Height="35" />
                    <RowDefinition Height="35" />
                    <RowDefinition Height="35" />
                    <RowDefinition />
                </Grid.RowDefinitions>
                
                <Button Grid.Row="0" x:Name="RenameAction" Content="Rename project" Margin="0 3" />
                <Button Grid.Row="1" x:Name="DrawBaseAction" Content="Draw base" Margin="0 3" />
                <!--<Button Grid.Row="2" x:Name="FillPanelsAction" Content="Fill panels" Margin="0 3" />-->
                <Button Grid.Row="2" x:Name="DrawPanelsAction" Content="Draw on panels" Margin="0 3"  />
            </Grid>
            </GroupBox>

            <Grid>
                <ht:HelixViewport3D ZoomExtentsWhenLoaded="True">

                    <!-- Remember to add light to the scene -->
                    <ht:DefaultLights ShowLights="True" />
                    <!--<ht:SunLight/>-->

                    <!-- The content of this visual is defined in MainViewModel.cs -->
                    <ModelVisual3D Content="{Binding Model}" />

                    <!-- You can also add elements here in the xaml -->
                    <ht:GridLinesVisual3D Width="1024" Length="1024" MinorDistance="10" MajorDistance="100" Thickness="1"/>

                </ht:HelixViewport3D>
            </Grid>
        </DockPanel>
    </Grid>
</UserControl>
